package com.itheima.domain.mongo.yuyin;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@Document(value = "sound")
public class Sound implements Serializable {

    private ObjectId id;  //主键id
    private Long vid;     //大数据使用的id
    private Long created; //创建时间


    private Long userId; // 小视频用户id
    private String url; //音频文件，URL
    private Integer loveCount = 0; //喜欢数

    private String gender;


}
